﻿<Window x:Class="SharpF2.View.ReportErrorDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Components="clr-namespace:SharpF2.Components"
    xmlns:Services="clr-namespace:SharpF2.Services"
    Title="{Services:Language ErrorReportDialogTitle}"
    Height="500" 
    Width="500"
    Icon="../SharpF2Icon.ico" 
    WindowStartupLocation="CenterScreen"
    Background="{StaticResource MainBackgroundBrush}">
    <Grid Margin="8,8,8,8">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0"
                   Margin="0,0,0,8" 
                   TextWrapping="Wrap" 
                   Text="{Services:Language ErrorReportInfomation}"/>
        <ScrollViewer Grid.Row="1" 
                      VerticalAlignment="Stretch"
                      HorizontalAlignment="Stretch">
            <TextBox HorizontalAlignment="Stretch" 
                     TextWrapping="Wrap" 
                     IsReadOnly="True"
                     Height="Auto"
                     Text="{Binding Path=ErrorExceptionStack, Mode=OneWay}"/>
        </ScrollViewer>
        <Grid Grid.Row="3" Height="Auto" IsSharedSizeScope="True">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto" SharedSizeGroup="A"/>
                <ColumnDefinition Width="Auto" SharedSizeGroup="A"/>
            </Grid.ColumnDefinitions>
            <Button HorizontalAlignment="Stretch" VerticalAlignment="Stretch" 
                    Margin="4" 
                    Grid.Column="1"
                    Padding="10,2"
                    Height="Auto" 
                    MinWidth="90" 
                    Content="{Services:Language ErrorReportSendErrorReport}" 
                    Components:FrameworkElementExtension.CloseCommand="{Binding ReportErrorCommand}"/>
            <Button HorizontalAlignment="Stretch" VerticalAlignment="Stretch" 
                    Margin="4" 
                    Grid.Column="2"
                    Padding="10,2"
                    Height="Auto" 
                    MinWidth="90" 
                    Content="{Services:Language ErrorReportDontSendErrorReport}" 
                    IsCancel="True"/>
        </Grid>
    </Grid>
</Window>
